<html>

<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>发现</title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="stylesheet" type="text/css" href="${staticpath}/front/dist/css/sm.css">
    <link rel="stylesheet" type="text/css" href="${staticpath}/front/dist/css/sm-extend.css">
    <link rel="stylesheet" type="text/css" href="${staticpath}/front/dist/css/module.css">
    <link rel="stylesheet" type="text/css" href="${staticpath}/front/dist/css/base.css">
    <link rel="stylesheet" type="text/css" href="http://at.alicdn.com/t/font_i3ztchhrqjx7p66r.css">
    <style>
        .card-detail {
            margin: 0;
        }

        .card-content p {
            margin: 0;
            font-size: 14px;
        }
        .page{
            background-color: #f0f3f8;
        }
        .card-content-inner img{width: 100%;max-height: 250px;}
    </style>
</head>

<body>
<div class="page-group">
    <div class="page">
        <!--头部内容 !-->
        <header class="bar bar-nav">
            <h1 class="title">发现</h1>
        </header>
        <div class="content">
            <!--详情内容 -->
            <div class="card-detail card">
                <div class="card-content">
                    <div class="card-content-inner">
                    </div>
                </div>
            </div>
            <div class="we-card card">
                <div class="card-content">
                    <div class="list-block">
                        <ul>
                            <li>
                                <a href="${basepath}/rest/front/product/toJoin" class="item-link item-content">
                                    <div class="item-media"><i class="icon icon-f7"></i></div>
                                    <div class="item-inner">
                                        <div class="item-title">加入我们</div>
                                    </div>
                                </a>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
        <!-- 工具栏 -->
        <nav class="footer-bar bar bar-tab">
            <a class="tab-item external" href="${basepath}/rest/front/product/toProductList">
                <img src="${staticpath}/front/dist/images/shangcheng.png">

                <p class="tab-label">商城</p>
            </a>
            <a class="tab-item external" href="${basepath}/rest/front/news/toNewsList">
                <img src="${staticpath}/front/dist/images/chart.png">

                <p class="tab-label">资讯</p>
            </a>
            <a class="tab-item external active" href="${basepath}/rest/front/product/toAbout">
                <img src="${staticpath}/front/dist/images/eye1.png">

                <p class="tab-label">发现</p>
            </a>
            <a class="tab-item external" href="${basepath}/rest/front/user/toMyPage">
                <img src="${staticpath}/front/dist/images/user.png">

                <p class="tab-label">我的</p>
            </a>
        </nav>
    </div>
</div>
<script type='text/javascript' src='${staticpath}/front/dist/js/lib/zepto.js' charset='utf-8'></script>
<script>
    $.config = {
        router: false
    }
</script>
<script type='text/javascript' src='${staticpath}/front/dist/js/lib/sm.js' charset='utf-8'></script>
<script type='text/javascript' src='${staticpath}/front/dist/js/lib/sm-extend.js' charset='utf-8'></script>
<script>
    function queryNewsDetail(){
        $.ajax({
            type:"GET",
            url:"/rest/front/product/selectAbout",
            dataType:"json",
            success: function(data) {
                var newsHtml='';
                newsHtml+='<p>'+data.data.aboutHTML+'</p>';
                $(".card-content-inner").html(newsHtml);
            }
        })
    }
    queryNewsDetail();
    $.init();
</script>
</body>
</html>
